package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Company;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface CompanyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Company record);

    Company selectByPrimaryKey(Long id);

    List<Company> selectAll();

    int updateByPrimaryKey(Company record);

    int queryForCount(QueryObject qo);

    void changeState(Long id);

    List<Company> queryForList(QueryObject qo);

    Company getCompanyByPId(Long id);
    /**
     * @Description: 查询保险公司
     * @Param: [id]  根据id查询当前保险公司
     * @return: cn.wolfcode.crm.domain.Company
     */

    List<Company> selectByTeamWork();
    /**
     * @Description: 查询合作状态的保险公司
     * @Param: []
     * @return: java.util.List<cn.wolfcode.crm.domain.Company>
     */

}